package club.sinoexcel.cxf.domain;

import lombok.Data;
import lombok.ToString;

import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

@Data
@ToString
@XmlRootElement(name="user")//该注解表示该类需要进行转换，name是转换时的根标签或根属性名
public class User implements Serializable {
    private Integer id;
    private String name;
    private Integer age;
}
//<user><id>1</id></user>
//{"user":{id:1,name:张三}}
